package com.lin.generator.model;

/**
 * @author 猴哥
 */
public class Field {
	/**
	 * 数据库字段名
	 */
	private String fieldName;

	/**
	 * 小驼峰
	 */
	private String lowerCamel;

	/**
	 * 大驼峰
	 */
	private String upperCamel;

	/**
	 * 数据库类型
	 */
	private String jdbcType;

	/**
	 * 对应java类型
	 */
	private String javaType;

	/**
	 * 不为空
	 */
	private Boolean notNull;

	/**
	 * 是否是主键
	 */
	private Boolean primaryKey;

	/**
	 * 备注
	 */
	private String fieldComment;

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public String getLowerCamel() {
		return lowerCamel;
	}

	public void setLowerCamel(String lowerCamel) {
		this.lowerCamel = lowerCamel;
	}

	public String getUpperCamel() {
		return upperCamel;
	}

	public void setUpperCamel(String upperCamel) {
		this.upperCamel = upperCamel;
	}

	public String getJdbcType() {
		return jdbcType;
	}

	public void setJdbcType(String jdbcType) {
		this.jdbcType = jdbcType;
	}

	public String getJavaType() {
		return javaType;
	}

	public void setJavaType(String javaType) {
		this.javaType = javaType;
	}

	public Boolean getNotNull() {
		return notNull;
	}

	public void setNotNull(Boolean notNull) {
		this.notNull = notNull;
	}

	public Boolean getPrimaryKey() {
		return primaryKey;
	}

	public void setPrimaryKey(Boolean primaryKey) {
		this.primaryKey = primaryKey;
	}

	public String getFieldComment() {
		return fieldComment;
	}

	public void setFieldComment(String fieldComment) {
		this.fieldComment = fieldComment;
	}

	@Override
	public String toString() {
		return "Field{" +
				"fieldName='" + fieldName + '\'' +
				", lowerCamel='" + lowerCamel + '\'' +
				", upperCamel='" + upperCamel + '\'' +
				", jdbcType='" + jdbcType + '\'' +
				", javaType='" + javaType + '\'' +
				", notNull=" + notNull +
				", primaryKey=" + primaryKey +
				", fieldComment='" + fieldComment + '\'' +
				'}';
	}
}
